import { INavViewMsg } from '@ibiz-template/runtime';
import { PanelItemState } from '../../control';

/**
 * 导航占位状态
 *
 * @export
 * @class NavPosState
 * @extends {PanelItemState}
 */
export class NavPosState extends PanelItemState {
  /**
   * 是否启用缓存
   *
   * @type {boolean}
   * @memberof NavPosState
   */
  cache: boolean = true;

  /**
   * 当前导航视图标识
   * @author lxm
   * @date 2023-05-25 06:24:48
   * @type {string}
   */
  currentKey: string = '';

  /**
   * 缓存的视图标识
   * @author lxm
   * @date 2023-05-25 06:25:21
   * @type {string[]}
   */
  cacheKeys: string[] = ['RouterShell'];

  /**
   * 导航视图详细信息
   * @author lxm
   * @date 2023-05-25 07:07:05
   * @type {INavViewMsg[]}
   */
  navViewMsgs: { [p: string]: INavViewMsg } = {};
}
